//
//  FDOneTableViewCell.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/26.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FDOneTableViewCell.h"

@implementation FDOneTableViewCell



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createOneView];
    }
    return self;
}

- (void)createOneView
{
    self.BGimage = [[[UIImageView alloc] init] autorelease];
    [self.contentView addSubview:self.BGimage];
    
    self.titleLabel = [[[UILabel alloc] init ]autorelease];
    [self.contentView addSubview:self.titleLabel];
    
}
 
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.BGimage.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 250);
    
    self.titleLabel.frame = CGRectMake(0, 260, 200, 20);
    self.titleLabel.backgroundColor = [UIColor whiteColor];
    self.titleLabel.textColor = [UIColor orangeColor];
    self.titleLabel.font = [UIFont systemFontOfSize:15.0];
}



























- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
